<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!--    <link rel="stylesheet" th:href="@{/layui-v2.6.8/layui/css/layui.css}" media="all">-->
    <style>
        .sun{
            margin: 20px 0 20px 500px;
            width: 10%;
            height: 40px;
        }
        .sun2{
            margin: 20px 0 20px 500px;
        }
    </style>
</head>
<body>
<form th:action="@{/index/update}" method="post">
    <input class="sun" name="name" placeholder="名称" th:value="${user.name}"/>
    <input class="sun" name="GDP" placeholder="GDP"  th:value="${user.GDP}"/>
    <input class="sun" name="capital" placeholder="首都"  th:value="${user.capital}"/>
    <input class="sun" name="people" placeholder="人口"  th:value="${user.people}"/>
    <input class="sun2" type="submit" value="修改">
</form>
</body>
</html>